#页面类：首页

from selenium.webdriver.common.by import By

#导入基类
from utils.page_base import PageBase

class PageIndex(PageBase):
    path_url = "/"
    loc_loginButton=By.XPATH,"//a[@href='/simple/login'][text()='登录']"

    def __init__(self, driver, base_url):
        PageBase.__init__(self, driver, base_url)

    #打开首页
    def openUrl(self):
        self.open(PageIndex.path_url)

    #点击登录按钮
    def click_loginButton(self):
        self.click(PageIndex.loc_loginButton)


